package com;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Lost extends JFrame {
    JLabel jl;
    JButton  jb1;

    public Lost(){
        init();
        setTitle("游戏结束");
        setBounds(550,300,300,150);
        setVisible(true);
        setResizable(false);

    }
    public void init(){
        setLayout(null);
        jl= new JLabel("战斗失败o(▼皿▼メ;)o");
        jl.setBounds(90,30,120,20);
        jb1 = new JButton("确定");
        jb1.setBounds(100,70,70,30);

        this.add(jl);
        this.add(jb1);


        jb1.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                setVisible(false);
            }
        });


    }

}
